package com.kws.merchant.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kws.merchant.domain.OrderPayLog;

/**
 * 订单支付记录(OrderPayLog)表服务接口
 *
 * @author yxy
 * @since 2024-11-20 14:32:16
 */
public interface OrderPayLogService extends IService<OrderPayLog> {

    /**
     * 分页查询列表
     */
    Page<OrderPayLog> pageList(OrderPayLog orderPayLog);



    /**
     * 昨日订单数量统计
     * @param userId
     * @param payType
     * @param time
     * @return
     */
    Double yesterdayOrderCount(Long userId, int payType, String time);

    /**
     * 商家根据时间统计支付-退款金额
     * @param userId
     * @param payType
     * @return
     */
    Double payCountByTime(Long userId, int payType,String time);

    /**
     * 总在途订单金额
     * @param userId
     * @param payType
     * @return
     */
    Double payCount(Long userId, int payType);

    /**
     * 总用户退款金额
     * @param userId
     * @param i
     * @return
     */
    Double countPayCount(Long userId, int i);

    /**
     * 总在途订单数
     * @param userId
     * @param i
     * @return
     */
    Double countOrderCount(Long userId, int i);
}
